package com.aaa.inbound.feign;

import com.aaa.entity.stock.Stock;
import com.aaa.vo.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * Create By WanJiale on 2020/12/4.
 */
@FeignClient(value = "stock-service")
public interface StockFeign {
    /*审核入库方法*/
    @PostMapping("/stock/stock/inboundStock")
    @ApiOperation("审核入库方法")
    R inboundStock(@RequestBody Stock stock);

    /*撤销审核入库方法*/
    @PostMapping("/stock/stock/cinboundStock")
    @ApiOperation("撤销审核入库方法")
    R cinboundStock(@RequestBody Stock stock);
}
